#!/usr/bin/env python
# _*_ coding: utf-8 _*_
# @Time : 2025-03-13 17:33
# @Author : fanzf
# @Version：V 0.1
# @File : models.py
# @desc :


from flask import current_app
app = current_app


class User(app.db.Model):
    id = app.db.Column(app.db.Integer, primary_key=True)
    username = app.db.Column(app.db.String(80), unique=True, nullable=False)
    email = app.db.Column(app.db.String(120), unique=True, nullable=False)

    def __repr__(self):
        return '<User {}>'.format(self.username)
